#include "Player.h"

CPlayer::CPlayer()
{
	m_sName = "Jugador Desconocido";
	m_iScore = 0;
}

CPlayer::CPlayer(const string &name)
{
	m_sName = name;
	m_iScore = 0;
}

void CPlayer::SetName(const string &newName)
{
	m_sName = newName;
}
		
void CPlayer::SetScore(int newScore)
{
	m_iScore = newScore;
}

void CPlayer::ChangeScore(int newScore)
{
	m_iScore += newScore;
}

string CPlayer::GetName()
{
	return m_sName;
}
		
int CPlayer::GetScore()
{
	return m_iScore;
}